from django.shortcuts import render, redirect
from django.views.generic import View


class IndexView(View):
    def get(self,request):
        user = request.user
        # 返回前端页面
        return render(request, 'index.html',{'user':user})














